/*
 * Copyright (c) 2013 XDream
 * Copyright (c) 2013 bruceshu <shuhuan.bruce@gmail.com>
 * 2024-9-20
 */


#ifndef AVBUFFER_H
#define AVBUFFER_H


#include "video_common_define.h"

namespace mydecoder {

enum BufferType {
    AudioFrame,
    VideoFrame,
};

struct VideoFrameMeta {
    int height;
    int width;
    PixelFormat pixel_format;
};

class AVBuffer
{
private:
    uint8_t *m_data;
    size_t m_size;
    // VideoFrameMeta *m_videoFrameMeta;

private:
    // void initType();

public:
    AVBuffer(/* args */);
    ~AVBuffer();

    // BufferType getType() const;
    // VideoFrameMeta* getVideoFrameMeta() const;
    uint8_t* getData() const;
    size_t getSize() const;
};





}


#endif